package com.wqiuqiu.common.constant;

public class WareConstant {
    public enum purchaseStatus{
        NEWBUILD(0,"新建"),
        ALLOCATED(1,"已分配"),
        RECEIVED(2,"已领取"),
        COMPLETED(3,"已完成"),
        EXCEPTION(4,"有异常");
        private int code;
        private String message;
        purchaseStatus(int code, String message){
            this.code = code;
            this.message = message;
        }
        public int getCode(){
            return this.code;
        }
    }
    public enum purchaseDetailStatus{
        NEWBUILD(0,"新建"),
        ALLOCATED(1,"已分配"),
        BUYING(2,"正在采购"),
        COMPLETED(3,"已完成"),
        FAILED(4,"采购失败");
        private int code;
        private String message;
        purchaseDetailStatus(int code, String message){
            this.code = code;
            this.message = message;
        }
        public int getCode(){
            return this.code;
        }
    }
    public enum OrderStatus{
        NEWBUILD(0,"已锁定"),
        CANCEL(1,"已解锁"),
        BUYING(2,"正在采购"),
        COMPLETED(3,"已完成"),
        FAILED(4,"采购失败");
        private int code;
        private String message;
        OrderStatus(int code, String message){
            this.code = code;
            this.message = message;
        }
        public int getCode(){
            return this.code;
        }
    }
}
